package com.starlink.model.request.mall;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Auther: zhouyuhang01
 * @Date: 2024/4/9 18:33
 * @Description: MallBuyRequest
 * @Version 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("商城-确认订单请求模型")
public class MallBuyRequest implements Serializable {
    @ApiModelProperty("收货地址ID")
    private Long addressId;
    @ApiModelProperty("商品ID")
    private Long articlesId;
    @ApiModelProperty("规格ID")
    private Long specificationId;
    @ApiModelProperty("运费模板ID")
    private Long freeTemplateId;
    @ApiModelProperty("商品类别 1书籍 2周边 3积分")
    private Integer articlesCategory;
    @ApiModelProperty("商品数量")
    private Integer quantity;
    @ApiModelProperty("商品价格")
    private BigDecimal amount;
    @ApiModelProperty("运费")
    private BigDecimal freight;
    @ApiModelProperty("openId")
    private String openId;
    @ApiModelProperty("订单ID")
    private Long orderId;
    @ApiModelProperty("订单类型")
    private Integer orderType;
    @ApiModelProperty("购物车物品ID")
    private List<Long> carArticlesIds;

    @ApiModelProperty("购物车ID")
    private Long carId;
    @ApiModelProperty("购物车结算类型 1部分结算 2全结算")
    private Integer settleAccountType;
    @ApiModelProperty("购物车数据 商品ID:数量")
    private Map<Long, Long> carData;

    @ApiModelProperty("积分商品支付类型 1积分支付 2积分+钱")
    private Integer paymentType;
    @ApiModelProperty("积分价格")
    private Long integralPrice;
}
